package com.dly.blog;

import jakarta.annotation.PostConstruct;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.reactive.config.EnableWebFlux;

import java.util.TimeZone;

/**
 * @Author: DaiLiYu
 * @Date: 2023/6/16 11:34
 */
@SpringBootApplication
@MapperScan(basePackages = "com.dly.blog.mapper")
public class BlogApplication {

    @PostConstruct
    void started() {
        TimeZone.setDefault(TimeZone.getTimeZone("Asia/Shanghai"));
    }

    public static void main(String[] args) {
        SpringApplication.run(BlogApplication.class, args);
    }
}
